package com.zhai.domain.strategy.service.rule.chain;

/**
 * @Description: 责任链抽象类
 * @ClassName: AbstractLogicChain
 * @Author: zhaiyongxin
 * @Date: 2025/1/9 14:32
 * @Version: 1.0
 */
public abstract class AbstractLogicChain implements ILogicChain {

    private ILogicChain next;

    @Override
    public ILogicChain appendNext(ILogicChain next) {
        this.next = next;
        return next;
    }

    @Override
    public ILogicChain next() {
        return next;
    }

    protected abstract String ruleModel();
}
